.class public Lmyclass/AddressAdapter;
.super Landroid/widget/BaseAdapter;
.source "AddressAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lmyclass/AddressAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field id:Ljava/lang/String;

.field mData:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 33
    .local p2, "mData":Ljava/util/List;, "Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 34
    iput-object p1, p0, Lmyclass/AddressAdapter;->context:Landroid/content/Context;

    .line 35
    iput-object p2, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    .line 37
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 46
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 51
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    const v6, 0x7f070183

    const/16 v5, 0x8

    const/4 v4, 0x0

    .line 56
    const/4 v0, 0x0

    .line 57
    .local v0, "holder":Lmyclass/AddressAdapter$ViewHolder;
    if-nez p2, :cond_1

    .line 59
    new-instance v0, Lmyclass/AddressAdapter$ViewHolder;

    .end local v0    # "holder":Lmyclass/AddressAdapter$ViewHolder;
    invoke-direct {v0, p0}, Lmyclass/AddressAdapter$ViewHolder;-><init>(Lmyclass/AddressAdapter;)V

    .line 61
    .restart local v0    # "holder":Lmyclass/AddressAdapter$ViewHolder;
    iget-object v1, p0, Lmyclass/AddressAdapter;->context:Landroid/content/Context;

    invoke-static {v1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 62
    const v2, 0x7f030035

    const/4 v3, 0x0

    .line 61
    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 64
    const v1, 0x7f070182

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 63
    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->username:Landroid/widget/TextView;

    .line 66
    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RatingBar;

    .line 65
    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->point:Landroid/widget/RatingBar;

    .line 67
    const v1, 0x7f070184

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->content:Landroid/widget/TextView;

    .line 68
    const v1, 0x7f070185

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->name:Landroid/widget/TextView;

    .line 69
    const v1, 0x7f070186

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->addtime:Landroid/widget/TextView;

    .line 70
    const v1, 0x7f070188

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/LinearLayout;

    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->ll:Landroid/widget/LinearLayout;

    .line 71
    const v1, 0x7f070187

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->bt:Landroid/widget/Button;

    .line 72
    invoke-virtual {p2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RatingBar;

    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->rb:Landroid/widget/RatingBar;

    .line 73
    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 80
    :goto_0
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->username:Landroid/widget/TextView;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    const-string v3, "username"

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 81
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->name:Landroid/widget/TextView;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    const-string v3, "name"

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 82
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->content:Landroid/widget/TextView;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    const-string v3, "content"

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 83
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->addtime:Landroid/widget/TextView;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    const-string v3, "addtime"

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 84
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->rb:Landroid/widget/RatingBar;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    .line 85
    const-string v3, "point"

    .line 84
    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {v2, v1}, Landroid/widget/RatingBar;->setProgress(I)V

    .line 86
    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    const-string v2, "id"

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    iput-object v1, p0, Lmyclass/AddressAdapter;->id:Ljava/lang/String;

    .line 87
    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    const-string v2, "repstatus"

    invoke-interface {v1, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 90
    iget-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->bt:Landroid/widget/Button;

    invoke-virtual {v1, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 91
    iget-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->ll:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v4}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 93
    const v1, 0x7f070189

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 92
    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->replycon:Landroid/widget/TextView;

    .line 95
    const v1, 0x7f07018a

    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 94
    iput-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->replytime:Landroid/widget/TextView;

    .line 96
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->replycon:Landroid/widget/TextView;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    .line 97
    const-string v3, "replycontent"

    .line 96
    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 98
    iget-object v2, v0, Lmyclass/AddressAdapter$ViewHolder;->replytime:Landroid/widget/TextView;

    iget-object v1, p0, Lmyclass/AddressAdapter;->mData:Ljava/util/List;

    invoke-interface {v1, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    .line 99
    const-string v3, "replytime"

    .line 98
    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 102
    :cond_0
    iget-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->bt:Landroid/widget/Button;

    iget-object v2, p0, Lmyclass/AddressAdapter;->id:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    .line 103
    iget-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->bt:Landroid/widget/Button;

    new-instance v2, Lmyclass/AddressAdapter$1;

    invoke-direct {v2, p0}, Lmyclass/AddressAdapter$1;-><init>(Lmyclass/AddressAdapter;)V

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 118
    return-object p2

    .line 76
    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    .end local v0    # "holder":Lmyclass/AddressAdapter$ViewHolder;
    check-cast v0, Lmyclass/AddressAdapter$ViewHolder;

    .line 77
    .restart local v0    # "holder":Lmyclass/AddressAdapter$ViewHolder;
    iget-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->bt:Landroid/widget/Button;

    invoke-virtual {v1, v4}, Landroid/widget/Button;->setVisibility(I)V

    .line 78
    iget-object v1, v0, Lmyclass/AddressAdapter$ViewHolder;->ll:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto/16 :goto_0
.end method
